package com.corejsf;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

@ManagedBean(name="newPersonHandler")
@SessionScoped
public class NewPersonHandler {
	
	public void takeParamsActionListener() {
		FacesContext context = FacesContext.getCurrentInstance();
		final Person person = (Person) context.getApplication().evaluateExpressionGet(context, "#{person}", Person.class);
		final Analysis analysis = (Analysis) context.getApplication().evaluateExpressionGet(context, "#{analysis}", Analysis.class);
		System.out.println("hello");
	}

}
